package daily.jun0603;

public class TimeWaitingCountTest {
    public static void main(String[] args) {
        new Thread(){
            @Override
            public void run() {
                for (int i = 0; i < 100; i++) {
                    if ((i) % 10 == 0) {
                        System.out.println("‐‐‐‐‐‐‐" + i);
                    }
                    System.out.print(i);
                    try {
                        Thread.sleep(1000);
                        System.out.print(" 线程睡眠1秒！\n");
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }
        }.start();
    }
}
